<style>
    body,html{
        background-color: #F9F9F9;
    }
    .left-label{
        text-align: left;
        width: 100px;
        margin-left: 35px;
    }
    .input-sm{
        width:150px ;
        display: inline;
        height: 30px;
    }
    .input-md{
        width: 300px;
        display: inline;
        height: 30px;
    }
    .input-lg{
        width: 520px;
        display: inline;
        height: 30px;
    }
    td{
        padding: 0px 10px;
    }
</style>
<script>
    var trackInfo={{ trackInfo }};
    {{ check }}
</script>
<form id="form" method="post" class="form-horizontal" style="margin-left: 20px;margin-right: 20px;" >
    <div class="form-group"  style="display: none">
        <label class="col-sm-3 control-label" >iTTchId</label>
        <div class="col-sm-9">
            <input class="form-control"  name="iTTchId" >
            <input class="form-control"  name="iUserId" >
        </div>
    </div>
    <table style="height: 100%;width: 100%" cellpadding="10">
        <tr>
            <td colspan="2">
                <div class="form-group tTrackTime">
                    <div style="display: inline;">
                        <label class="left-label" style="margin-left: 15px;width: 75px;" >跟踪时间:</label>
                        <input  class="form-control form_datetime input-sm" must="true" name="tTrackTime" type="text" />
                    </div>
                    <div style="display: inline">
                        <label class="left-label" style="margin-left: 15px;width: 75px;text-align: right;margin-right: 20px;">跟踪类型:</label>
                        <select  class="form-control  input-sm"  name="iTrackType" must="true" type="text" >
                            <option style="display: none" selected value="">请选择</option>
                            {% for id,text in types  %}
                                <option value="{{ id }}">{{ text }}</option>
                            {% endfor %}
                        </select>
                    </div>

                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="form-group" style="margin-left: 0px">
                    <label class="left-label" style="display: block;margin-left: 0px;">沟通目的:</label>
                    <textarea class="form-control" style="display: block;margin-left: 0px;" rows="4" name="mPurpose"></textarea>
                </div>
            </td>
            <td>
                <div class="form-group" style="margin-left: 0px">
                    <label class="left-label" style="display: block;margin-left: 0px;">沟通内容:</label>
                    <textarea class="form-control" style="display: block;margin-left: 0px;" rows="4"  name="mContent"></textarea>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="form-group" style="margin-left: 0px">
                    <label class="left-label" style="display: block;margin-left: 0px;">沟通结果:</label>
                    <textarea class="form-control" style="display: block;margin-left: 0px;" rows="4"  name="mResult"></textarea>
                </div>
            </td>
            <td>
                <div class="form-group" style="margin-left: 0px">
                        <span><label class="left-label" style="margin-left: 0px;width: 80px">原因分析:</label>
                            <select  id="tpSelect">
                                <option value="" style="display: none" selected>备选原因</option>
                                {% for id,text in tps %}
                                    <option value="{{ id }}">{{ text }}</option>
                                {% endfor %}
                            </select>
                        </span>
                    <textarea class="form-control" style="display: block;margin-left: 0px;" rows="4"  name="mAppUse" placeholder="请先选择备选原因，不符合请自行填写"></textarea>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div class="form-group" style="margin-left: 0px;">
                    <label class="left-label" style="display: block;margin-left: 0px;">附件:</label>
                    <input id="fileInput" class="form-control"  multiple="multiple" type="file"   />
                </div>
            </td>
        </tr>
    </table>


    <div class="form-group" style="display: none">
        <label class="col-sm-3 control-label">图片:</label>
        <div class="col-sm-9" >
            <input id="sImages" class="form-control"  type="text" name="sImages"   />
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="col-sm-3 control-label">文件:</label>
        <div class="col-sm-9" >
            <input id="sFiles" class="form-control"  type="text" name="sFiles"   />
        </div>
    </div>

</form>